home *** CD-ROM | disk | FTP | other *** search
- Path: redstone.interpath.net!mercury!softbase
- From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
- Newsgroups: comp.lang.c
- Subject: Re: Schildt <- Advanced Books
- Date: 16 Feb 1996 13:28:38 GMT
- Organization: Interpath -- Providing Internet access to North Carolina
- Message-ID: <4g20q6$lro@redstone.interpath.net>
- References: <8BA8405.02C70020DE.uuout@sourcebbs.com> <4fkmni$589@prairie.nodak.edu>
- NNTP-Posting-Host: mercury.interpath.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Where does Herb Schildt get his nutty ideas about "void main()"?
-
- I've done a survey of "void main()" in ANSI DOS/Windows compilers.
- Schildt has used both MS C and Borland C and has presumably read
- their references on the subject.
-
- * Microsoft's C/C++ 7.0 has an example in the help entry for the main
- function that uses "void main()". I can't find that example in
- Visual C++ 1.0's help.
-
- * Borland C++ 4.5 says main() returns an int, but has no
- example one way or the other. (I don't have 3.1 installed,
- unfortunately, so I don't know what it says on the issue.)
-
- * Power C's reference says "int main".
-
- What would be interesting is to go back to some pre-ANSI DOS-based C
- books (I have a couple) and see what they say, or even the reference
- for DOS compilers. If Microsoft blew it, then the issue must not be
- very well understood. MS is usually pretty rigorous in their conformance
- to ANSI standards. (I think C7 was the *second* ANSI C version, wasn't
- it? Wasn't C6 ANSI compatible?)
-
- BTW, I still don't see how "void main" is simpler than "main".
-
- Scott
-
-